package com.crape.common.model;

import com.crape.common.constants.ConstantCode;
import com.crape.common.utils.StringUtil;

/**
 * 用户文章评论回复类
 * 
 * @author ChenKai 2012-11-4 下午12:24:30
 */
public class ArticleReply {

    private Long   id;         // ID
    private Long   commentid;  // 父节点id
    private Long   accountid;  // 写回复的用户ID
    private Long   reaccountid; // 所回复的用户ID
    private Long   articleid;  // 所属文章ID
    private String reply;      // 回复内容
    private String createdate; // 创建时间
    private String modifydate; // 修改时间
    private String deletedate; // 删除时间

    // ===============================
    private String  imagename;   // 图片名称
    private String  image;       // 原图
    private String  username;   // 用户名

    private String  reImagename;   // 图片名称
    private String  reImage;       // 原图
    private String  reUsername; // 用户名

    private Integer isMe; // 状态：0=NO，1=YES
    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCommentid() {
        return commentid;
    }

    public void setCommentid(Long commentid) {
        this.commentid = commentid;
    }

    public Long getAccountid() {
        return accountid;
    }

    public void setAccountid(Long accountid) {
        this.accountid = accountid;
    }

    public Long getReaccountid() {
        return reaccountid;
    }

    public void setReaccountid(Long reaccountid) {
        this.reaccountid = reaccountid;
    }

    public Long getArticleid() {
        return articleid;
    }

    public void setArticleid(Long articleid) {
        this.articleid = articleid;
    }

    public String getReply() {
        return reply;
    }

    public void setReply(String reply) {
        this.reply = reply;
    }

    public String getCreatedate() {
        return StringUtil.getTimeStr(createdate);
    }

    public void setCreatedate(String createdate) {
        this.createdate = createdate;
    }

    public String getModifydate() {
        return StringUtil.getTimeStr(modifydate);
    }

    public void setModifydate(String modifydate) {
        this.modifydate = modifydate;
    }

    public String getDeletedate() {
        return deletedate;
    }

    public void setDeletedate(String deletedate) {
        this.deletedate = deletedate;
    }

    public String getImagename() {
		return imagename;
	}

	public void setImagename(String imagename) {
		this.imagename = imagename;
	}

	public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

	public String[] getImages() {
		return StringUtil.imagesUrl(imagename, ConstantCode.imageSize);
	}

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
    
    public String getReImagename() {
		return reImagename;
	}

	public void setReImagename(String reImagename) {
		this.reImagename = reImagename;
	}

    public String getReImage() {
        return reImage;
    }

    public void setReImage(String reImage) {
        this.reImage = reImage;
    }

	public String[] getReImages() {
		return StringUtil.imagesUrl(reImagename, ConstantCode.imageSize);
	}

	public String getReUsername() {
        return reUsername;
    }

    public void setReUsername(String reUsername) {
        this.reUsername = reUsername;
    }

	public Integer getIsMe() {
		return isMe;
	}

	public void setIsMe(Integer isMe) {
		this.isMe = isMe;
	}

}
